<template>
  <div class="sppz">
    <roleA v-show="role === 'juesea'" />
    <roleB v-show="role === 'jueseb'" />
  </div>
</template>

<script>
import roleA from './components/roleA'
import roleB from './components/roleB'
export default {
  components: {
    roleA,
    roleB
  },

  data() {
    return {
      role: 'juesea'
    }
  },

  created() {
    this.$bus.$on('switchRole', val => {
      this.role = val
    })
  }
}
</script>

<style lang="scss" scoped></style>
